-- GENERATED SPELL FOR [Uhk'loc] --


function spell0_6585(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_6585', 524, 1)
end

function spell1_6585(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6585', 5278, 1)
end

function spell2_6585(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6585', 605, 1)
end

function Sorts_6585(pUnit, Event)
local choix_sorts_6585 = math.random(0, 2)
if choix_sorts_6585 == 0 then
pUnit:RegisterEvent('spell0_6585', 1, 1)
end
if choix_sorts_6585 == 1 then
pUnit:RegisterEvent('spell1_6585', 1, 1)
end
if choix_sorts_6585 == 2 then
pUnit:RegisterEvent('spell2_6585', 1, 1)
end
end

function mob6585_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6585', math.random(1500, 3000), 1)
end

function mob6585_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6585_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6585_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6585, 1, 'mob6585_Action')
RegisterUnitEvent(6585, 2, 'mob6585_Leave')
RegisterUnitEvent(6585, 3, 'mob6585_Kill')
RegisterUnitEvent(6585, 4, 'mob6585_Die')
